package demo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

public class HelloWorld {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("hello.txt");
        fos.write("大家好".getBytes(StandardCharsets.UTF_8));
        System.out.println("写出完毕");
        fos.close();

        System.out.println("在hot-fix分支上实现了一个功能");
        for(int i=0;i<10;i++){
            System.out.println("大家撸");
        }
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字：");
        int a = sc.nextInt();
        for (int i = 0; i < a; i++){
            System.out.println("我爱撸撸撸");
        }
        System.out.println("新功能");
    }
}
